<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>你的错题</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style type="text/css">
        .d{
            display: flex;
            align-content: center;
            justify-content: center;
        }
        .a:hover
        {
            background-color:black;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <ul class="breadcrumb">
                    <li>
                        <a href="${pageContext.request.contextPath}/cs">考前测试</a> <span class="divider">/</span>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/bm">报名考试</a> <span class="divider">/</span>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/wd">我的考试</a> <span class="divider">/</span>
                    </li>
                    <%--显示错题--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/ct">错题本</a> <span class="divider">/</span>
                    </li>
                    <%--显示做得好的名称的那一夜--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/phb">排行榜</a> <span class="divider">/</span>
                    </li>
                    <%--推到index,销毁session--%>
                    <li>
                        <a href="${pageContext.request.contextPath}/loginout">注销</a> <span class="divider">/</span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="text-center text-success">
                    这是大家做错的题
                </h3>
                <h3 class="text-center text-success">
                    ${msg}
                </h3>
            </div>
        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>题目内容</th>
                    <th>选项A</th>
                    <th>选项B</th>
                    <th>选项C</th>
                    <th>正确答案</th>
                    <%--<th>图片信息</th>--%>
                </tr>
                </thead>
                <tbody>
                    <c:forEach var="qquestion" items="${requestScope.get('wlist')}">
                        <tr>
                            <td>${qquestion.getQ_CONTENT()}</td>
                            <td>${qquestion.getANS_A()}</td>
                            <td>${qquestion.getANS_B()}</td>
                            <td>${qquestion.getANS_C()}</td>
                            <td style="color: white;" class="a">${qquestion.getTRUE_ANS()}</td>
                        </tr>
                    </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>